// const theme = require('./package.json').theme;
const theme = require('./antd-theme.json')

module.exports = {

    module: {

        rules: [

            {
                test: /\.css$/,
                use: [
                    'style-loader',
                    'css-loader',
                ],
            },
            {
                test: /\.less$/,
                use: [
                    'style-loader',
                    'css-loader',
                    { loader: 'less-loader', options: { modifyVars: theme } },
                ],
                include: /node_modules/,
            },

        ],
    },

}